<div id="news">
    <div class="rss"><a href="#"><img src="themes/bie/images/rss.png" width="16" height="16" style="margin-bottom:-3px;"/> RSS</a></div>
    <div class="more"><a href="contents/index/1">ดูทั้งหมด</a></div>
    <img src="themes/bie/images/lbl_news.png" width="704" height="54" class="lbl" />
    <div class="clear"></div>
	<?php foreach($contents as $key => $content): ?>
	<?php if($key==0): ?>
    <div class="newsA"><a href="contents/view/<?php echo $content->id ?>"><img src="uploads/content/thumbnail/<?php echo $content->image ?>" width="261" height="195" /></a>
    <p><a href="contents/view/<?php echo $content->id ?>"><?php echo $content->intro ?></a></p>
    </div>
    <?php else: ?>
    <div class="newsB" <?php echo ($key<>1)?'style="padding-top:10px;"':'' ?>><a href="contents/view/<?php echo $content->id ?>"><img src="uploads/content/thumbnail/small/<?php echo $content->image ?>" width="100" height="75" align="left" /></a>
    <span><a href="contents/view/<?php echo $content->id ?>"><?php echo $content->title ?></a></span>
    <p><?php echo $content->intro ?></p>
    </div>
    <?php endif; ?>
	<?php endforeach; ?>
    <div class="clear"></div>
    
</div><!--news-->